#ifndef __SHT30_H__
#define __SHT30_H__
 
#include <stdint.h>
#include "stm32f10x.h" // Device header
 
#define I2C_WRITE   (0)
#define I2C_READ    (1)
 
#define SHT30_INQUIRE_CNT   (500)
#define SHT30_ADDR (0x44) 
 
#define SHT30_SCL_PORT  GPIOB
#define SHT30_SCL_PIN   GPIO_Pin_10		// GPIO_MODE_OUTPUT_PP
#define SHT30_SDA_PORT  GPIOB
#define SHT30_SDA_PIN   GPIO_Pin_11		// GPIO_MODE_OUTPUT_OD
 
void i2c_init(void);
int read_sht30_data(float *temp, float *humi);
 
#endif  /* sht30.h */
 
 